package com.example.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.example.entity.SkillGoods;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.time.LocalDateTime;
import java.util.List;

@Mapper
public interface SkillGoodsMapper extends BaseMapper<SkillGoods> {

    //获取在beginTime开始的秒杀商品
    @Select("select * from skill_goods where skill_begin_time = #{beginTime}")
    List<SkillGoods> getWillBeginSkillGoods(LocalDateTime beginTime);
}
